package com.gupao.template.work;

public class BStaffWork extends WorkTemplate {

    private boolean isTaskFlag;

    public BStaffWork(boolean isTaskFlag) {
        this.isTaskFlag = isTaskFlag;
    }

    @Override
    protected boolean isTask() {
        return true;
    }

    void drinkTea() {
        System.out.println(getStaffName() + "上班期间喝乌龙茶");
    }

    String getStaffName() {
        return "员工B";
    }
}
